.index {
  width: 100%;
  // padding: 10px 15px;
  box-sizing: border-box;
  background-color: #f5f5f5;
  background-image: url(~@static/img/index-bg2.png);
  background-size: 100% auto;
  background-repeat: no-repeat;

  .top-logo{
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
    color: #fff;
    font-size: 18px;
  }

  .banner {

    padding: 10px 15px 0;
    box-sizing: border-box;
    .my-swipe{
      width: 100%;
      height: 130px;
    }
    .my-swipe .van-swipe-item {
      color: #fff;
      font-size: 20px;
      line-height: 130px;
      text-align: center;
      width: 100%;
      height: 130px;

      img {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        overflow: hidden;
      }

    }
  }

  .tab-box{
    width: 100%;
    padding: 5px 15px;
    box-sizing: border-box;
    .tablist{
      width: 100%;
      padding: 10px 0;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .tab-item{
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        img{
          width: 44px;
          height: 44px;
        }
        .name{
          font-size: 14px;
          color: #333;
        }
      }
    }
  }

  .title-common {
    width: 100%;
    height: 40px;
    padding: 0px 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .title-lf {
      font-size: 16px;
      color: #333;
      font-weight: bold;
      position: relative;
      padding-left: 13px;

      box-sizing: border-box;

      &::before {
        position: absolute;
        content: "";
        left: 3px;
        top: 4px;
        width: 4px;
        height: 15px;
        border-radius: 0px;
        background-color: #5881db;
      }
    }

    .title-rg {
      display: flex;
      align-items: center;
      color: #999;

      i.iconfont {
        font-size: 14px;
        margin-left: 4px;
      }

      span {
        font-size: 14px;
      }
    }
  }
  .survey-list{
    width: 100%;
    padding: 0px 15px;
    box-sizing: border-box;
    .survey-item {
      width: 100%;
      background-color: #fff;
      border: 1px solid #eee;
      padding: 10px 15px 15px;
      box-sizing: border-box;
      margin-top: 10px;
      font-size: 14px;
      border-radius: 5px;
      position: relative;
      overflow: hidden;

      .btn {
        position: absolute;
        bottom: 10px;
        right: 10px;
        height: 26px;
        line-height: 26px;
        width: 70px;
        background: #5881db;
        text-align: center;
        color: #fff;
        cursor: pointer;
        font-size: 12px;
        border-radius: 4px;
      }

      .name {
        width: 100%;
        font-size: 14px;
        color: #333;
        font-weight: bold;
        line-height: 30px;
      }

      .time {
        font-size: 12px;
        color: #666;
        padding: 5px 0;
      }

      .bottom {
        font-size: 12px;
        color: #666;
      }

    }
  }
  .course-list {
    width: 100%;
    padding: 0px 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    .nodata {
      width: 100%;
      height: 300px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      img {
        width: 160px;
      }

      div {
        line-height: 50px;
        font-size: 14px;
        color: #999;
      }
    }
    .course-item-train {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 5px 0;
      background-color: #FFF;
      border-radius: 5px;
      padding: 10px 10px;
      box-sizing: border-box;

      .img {
        width: 100px;
        height: 100px;
        border-radius: 5px;
        overflow: hidden;

        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
      }

      .data-cont {
        flex: 1;
        padding-left: 10px;
        box-sizing: border-box;
        .name{
          font-size: 14px;
          color: #333;

        }

        .progress-box {
          width: 100%;
          height: 30px;
          display: flex;
          align-items: center;
          justify-content: space-between;

          .progress-line {
            flex: 1;
          }

          .progress-text {
            width: 90px;
            font-size: 12px;
            text-align: left;
            flex-shrink: 0;
          }

        }

      }

    }

    .course-item {
      width: 50%;
      padding: 5px;
      box-sizing: border-box;

      .course-cont {
        width: 100%;
        background-color: #FFF;
        border-radius: 5px;

        .img {
          width: 100%;
          height: 100px;
          border-radius: 5px;
          overflow: hidden;
          position: relative;

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
          .type {
						position: absolute;
						top: 6px;
						left: 6px;
						min-width: 40px;
						height: 20px;
            padding: 0 6px;
            box-sizing: border-box;
						background: rgba(0, 0, 0, .3);
						border-radius: 4px;
						display: flex;
						align-items: center;
						justify-content: center;

						i {
							width: 4px;
							height: 4px;
							background: #b82121;
							border-radius: 50%;
						}

						i.active {
							background: #3cbb4d;
						}

						span {
							font-size: 10px;
							color: #fff;
							// margin-left: 4px;
						}
					}
        }

        .name {
          width: 100%;
          padding: 0 5px;
          box-sizing: border-box;
          line-height: 30px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          font-size: 14px;
          color: #333;
        }

        .people {
          padding: 0 5px 8px;
          box-sizing: border-box;
          font-size: 12px;
          color: #999;
          line-height: 20px;
          display: flex;
          align-items: center;

          i.iconfont {
            font-size: 12px;
            margin-right: 4px;
          }
        }
      }
    }
  }
}


.exam-detail-box {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  .exam-detail-cont {
    width: 300px;
    height: 470px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
  }

  .close {
    margin-top: 10px;

    i.iconfont {
      font-size: 30px;
      color: #fff;
    }
  }
}
